// 导出 routes
const userRoutes = [
  // 平台管理
  {
    path: "/mgmt/platform-list",
    name: "Platform",
    component: () => import("@/views/platform/index.vue"),
  },
   // 平台管理-详情
   {
    path: "/mgmt/platform-list/detail/:id",
    name: "PlatformDetail",
    component: () => import("@/views/platform/components/platformDetail.vue"),
  },
  // 集群管理
  {
    path: "/mgmt/cluster-list",
    name: "Cluster",
    component: () => import("@/views/cluster/index.vue"),
  },
   // 集群管理-详情
   {
    path: "/mgmt/cluster-list/detail/:id",
    name: "ClusterDetail",
    component: () => import("@/views/cluster/components/clusterDetail.vue"),
  },
  // 计算管理
  {
    path: "/computing-mgmt/computing-node",
    name: "Host",
    component: () => import("@/views/computingNode/index.vue"),
  },
  {
    path: "/computing-mgmt/computing-node/detail/:id",
    name: "HostDetail",
    component: () =>import("@/views/common/detailInfo/computingNode/components/hostDetail.vue"),
  },
  // 云主机管理
  {
    path: "/computing-mgmt/vm-list",
    name: "VmList",
    component: () => import("@/views/vmList/index.vue"),
  },
  // 云主机管理
  {
    path: "/computing-mgmt/vm/create",
    name: "VmListCreate",
    component: () => import("@/views/common/detailInfo/vm/components/createVm/index.vue"),
  },
  // 云主机组
  {
    path: "/computing-mgmt/vm-group",
    name: "VmGroup",
    component: () => import("@/views/vmGroup/index.vue"),
  },
  // 云主机回收站
  {
    path: "/computing-mgmt/vm-recycle-bin",
    name: "vmRecycleBin",
    component: () => import("@/views/vmRecycleBin/index.vue"),
  },
  // 镜像
  {
    path: "/computing-mgmt/image",
    name: "Image",
    component: () => import("@/views/image/index.vue"),
  },
  // 快照
  {
    path: "/computing-mgmt/snapshot",
    name: "Snapshot",
    component: () => import("@/views/snapshot/index.vue"),
  },
  // 置放群组
  {
    path: "/computing-mgmt/placement-group",
    name: "PlacementGroup",
    component: () => import("@/views/placementGroup/index.vue"),
  },
  // 置放群组 - 详情
    {
    path: "/computing-mgmt/placement-group/detail/:id",
    name: "PlacementGroupDetail",
    component: () => import("@/views/placementGroup/components/detail.vue"),
  },
    // 存储管理
    {
      path: "/storage-mgmt/storage-list",
      name: "StorageList",
      component: () => import("@/views/storage/index.vue"),
    },
  // 网络(vpc)
  {
    path: "/network-mgmt/network-vpc",
    name: "NetworkVpc",
    component: () => import("@/views/networkVpc/index.vue"),
  },
  // 子网
  {
    path: "/network-mgmt/subnet",
    name: "Subnet",
    component: () => import("@/views/subnet/index.vue"),
  },
 
  // 计算方案 - 二层子网
  {
    path: "/model-mgmt/layer-2subnet",
    name: "Layer2subnet",
    component: () => import("@/views/layer2subnet/index.vue"),
  },
  {
    path: "/model-mgmt/layer-2subnet/detail/:id",
    name: "2subnetDetail",
    component: () => import("@/views/layer2subnet/components/layer2subnetDetail.vue"),
  },
      // 计算方案 - 操作系统
  {
    path: "/model-mgmt/operating-system",
    name: "OperatingSystem",
    component: () => import("@/views/operatingSystem/index.vue"),
  },
   // 计算方案 - 操作系统详情
  {
    path: "/model-mgmt/operating-system/detail/:id",
    name: "OperatingSystemDetail",
    component: () => import("@/views/operatingSystem/components/detail.vue"),
  },
  // 计算方案
  {
    path: "/model-mgmt/computing-solution",
    name: "ComputingSolution",
    component: () => import("@/views/computingSolution/index.vue"),
  },
  // 插件管理
  {
    path: "/plugin-mgmt",
    name: "PluginMgmt",
    component: () => import("@/views/pluginMgmt/index.vue"),
  },
   // 插件管理 -  详情
   {
    path: "/plugin-mgmt/detail/:id",
    name: "PluginMgmtDetail",
    component: () => import("@/views/pluginMgmt/components/detail.vue"),
  },
  // 标签管理
  {
    path: "/tag-mgmt",
    name: "TagMgmt",
    component: () => import("@/views/tagMgmt/index.vue"),
  },
  // 标签管理 - 详情
  {
    path: "/tag-mgmt/detail/:id",
    name: "TagMgmtDetail",
    component: () => import("@/views/tagMgmt/components/detail.vue"),
  },
  // 数据字典
  {
    path: "/global-mgmt/data-dictionary",
    name: "DataDictionary",
    component: () => import("@/views/dataDictionary/type/index.vue"),
  },
   // 应用
   {
    path: "/auditLog/application",
    name: "Application",
    component: () => import("../../views/auditlog/index.vue"),
  },
   // 审计
   {
    path: "/auditLog/audit",
    name: "Audit",
    component: () => import("@/views/auditlog/index.vue"),
  },
  // 系统设置
  {
    path: "/global-mgmt/system-setting",
    name: "SystemSetting",
    component: () => import("@/views/systemSetting/index.vue"),
  },
  // 蓝鲸log详情
  {
    path: "/bk/job-log/:id",
    name: "JobLog",
    component: () => import("@/views/jobLog/index.vue"),
  },
];
export default userRoutes;
